home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / plugins / HTMLWindow.jar / horst / InvisibleView.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-18  |  1.3 KB  |  35 lines

  1. package horst;
  2.  
  3. import java.awt.Graphics;
  4. import java.awt.Rectangle;
  5. import java.awt.Shape;
  6.  
  7. public class InvisibleView extends View {
  8.    public InvisibleView(View parent, Element e, HTMLPane container) {
  9.       super(parent, e, container);
  10.    }
  11.  
  12.    protected int getMinimumSpan(int axis) {
  13.       return 0;
  14.    }
  15.  
  16.    protected int getPreferredSpan(int axis) {
  17.       return 0;
  18.    }
  19.  
  20.    protected boolean isDisplayableView() {
  21.       return false;
  22.    }
  23.  
  24.    protected Rectangle layout(int x, int y, int width, LayoutInfo info) {
  25.       super.m_bounds.setBounds(x, y, 0, 0);
  26.       return super.m_bounds;
  27.    }
  28.  
  29.    public void paint(Graphics g, Shape alloc) {
  30.    }
  31.  
  32.    protected void paintFocusBox(Graphics g, Shape allocation) {
  33.    }
  34. }
  35.